package com.taotao.portal.pojo;

public class SearchItem {
	private Long id;
	private String title;
	private String sellPoint;
	private long price;
	private String image;
	private String categoryName;
	private String itemDesc;
	
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		if(image!=null)
			this.image=image.trim();
		else
			this.image = image;
	}
	public String getCategoryName() {
		return categoryName;
	}
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSellPoint() {
		return sellPoint;
	}
	public void setSellPoint(String sellPoint) {
		this.sellPoint = sellPoint;
	}
	public String getItemDesc() {
		return itemDesc;
	}
	public void setItemDesc(String itemDesc) {
		this.itemDesc = itemDesc;
	}
	public long getPrice() {
		return price;
	}
	public void setPrice(long price) {
		this.price = price;
	}
	
	public String[] getImages() {
		if(image==null)
			return null;	
		String[] strings = image.split(",");
		if(strings.length==0)
			return null;
		return strings;
	}
}
